//
//  ConsumerTypeSeletedController.m
//  XiaoMiao
//
//  Created by kinglian_iOS_000 on 2018/1/30.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import "ConsumerTypeSeletedController.h"
#import "ConsumerParentController.h"
#import "ConsumerListController.h"
//#import "ProjectSeletedController.h"

#import "XMCameraTimeAndAngleViewController.h"

@interface ConsumerTypeSeletedController ()
@property (weak, nonatomic) IBOutlet UIButton *creatNewButton;
@property (weak, nonatomic) IBOutlet UIButton *seletedOldButton;

@end

@implementation ConsumerTypeSeletedController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"拍照";
    
    [self.creatNewButton addTarget:self action:@selector(buttonDidClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.seletedOldButton addTarget:self action:@selector(buttonDidClick:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)buttonDidClick:(UIButton *)sender {
    if (sender == self.creatNewButton) {
        XMCameraTimeAndAngleViewController *creat = [[XMCameraTimeAndAngleViewController alloc]init];
        [self.navigationController pushViewController:creat animated:YES];
//        ProjectSeletedController *seleted = [[ProjectSeletedController alloc] initNewCamera];
//        [self.navigationController pushViewController:seleted animated:YES];
        
    }else if (sender == self.seletedOldButton) {
        
            ConsumerListController *list1 = [[ConsumerListController alloc] initWithViewHeight:self.view.height isSearchType:NO vcType:ConsumerListVCTypeName];
//        ConsumerParentController *parent = [[ConsumerParentController alloc] initWithVCType:ConsumerParentVCTypeSeletedOld];
        [self.navigationController pushViewController:list1 animated:YES];
    }
}

@end
